<table width="100%">
  <tr>
    <td class="regulartext">
      <% form_tag :action=> "create_save" do %>

        <%= error_messages_for 'user', :header_message => "Försök igen!", :message => "Titta igenom formuläret och rätta enligt anvisningar."   %><br/>
        <label for="user_firstname">Förnamn</label><br/>
        <%= text_field "user", "firstname",  :size => 20 %><br/>

        <label for="user_lastname">Efternamn</label><br/>
        <%= text_field "user", "lastname",  :size => 20 %><br/>

        <label for="user_address">Adress</label><br/>
        <%= text_field "user", "address",  :size => 20 %><br/>

        <label for="user_postalcode">Postnummer</label><br/>
        <%= text_field "user", "postalcode",  :size => 20 %><br/>

        <label for="user_city">Postort</label><br/>
        <%= text_field "user", "city",  :size => 20 %><br/>

        <label for="province">Län</label><br/>
        <%= select("province", "id", @provinces.collect {|p| [ p.name, p.id ] }, { :include_blank => "Välj län" }, { :onchange => remote_function(:update => "county_select",
              :url => { :action => :counties }, :with => "'id=' + this.value") }) %><br/>
        <div id="county_select">
          <% if @user && @user.county %>
            <%= render :partial => "counties" %>
          <% end %>
        </div>

        <label for="user_tel">Telephone</label><br/>
        <%= text_field "user", "tel",  :size => 20 %><br/>

        <label for="user_show_tel">Visa telefonnummer för andra?</label><br/>
        <%= check_box("user", "show_tel",{ :checked => true }) %><br/>

        <label for="user_email">Email</label><br/>
        <%= text_field "user", "email",  :size => 20 %><br/>

        <label for="user_login">Username</label><br/>
        <%= text_field "user", "username", :size => 20 %>
        <br/>

        <label for="user_password">Password</label><br/>
        <%= password_field "user", "clearpassword", :size => 20 %><br/>

        <label for="user_password_confirmation">Password Confirmation</label><br/>
        <%= password_field "user", "clearpassword_confirmation", :size => 20 %><br/>

        <%= submit_tag "Signup" %>

      <% end %>
    </td>
  </tr>
</table>